const routers = [
  {
    path: "/shouye",
    meta: {
      title: "首页"
    },
    component: resolve => require(["./views/shouye.vue"], resolve)
  },
  {
    path: "/list",
    meta: {
      title: "商品列表"
    },
    component: resolve => require(["./views/list.vue"], resolve)
  },
  {
    path: "/product/:id",
    meta: {
      title: "商品详情"
    },
    component: resolve => require(["./views/product.vue"], resolve)
  },
  {
    path: "/store",
    meta: {
      title: "故事"
    },
    component: resolve => require(["./views/store.vue"], resolve)
  },
  {
    path: "/register",
    meta: {
      title: "商品列表"
    },
    component: resolve => require(["./views/register.vue"], resolve)
  },
  {
    path: "/login",
    meta: {
      title: "登录"
    },
    component: resolve => require(["./views/login.vue"], resolve)
  },
  {
    path: "/lease",
    meta: {
      title: "登录"
    },
    component: resolve => require(["./views/lease.vue"], resolve)
  },
  {
    path: "/help",
    meta: {
      title: "登录"
    },
    component: resolve => require(["./views/help.vue"], resolve)
  },

  {
    path: "*",
    redirect: "/shouye"
  }
];
export default routers;
